import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const userIdKey = 'userid'
const bmqljkey = 'bmqlj'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getUserId() {
  return Cookies.get(userIdKey)
}

export function setUserId(userid) {
  return Cookies.set(userIdKey, userid)
}

export function removeUserId() {
  return Cookies.remove(userIdKey)
}

//本地存储开通地区全路径名称
export function setbmQljmc(bmqlj) {
  localStorage.setItem(bmqljkey,bmqlj)
}
//获取本地开通地区全路径名称
export function getbmQljmc() {
  return localStorage.getItem(bmqljkey)
}
